package com.panshi.bean;

/*
* 分页工具类
* */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页实体类")
public class PageUtil implements Serializable {

    @ApiModelProperty("业务Id")
    private Integer aid;

    @ApiModelProperty("类型Id")
    private Integer tid;

    @ApiModelProperty("0已回答 1未回答")
    private Integer answer;

    @ApiModelProperty("起始页")
    private Integer startIndex;

    @ApiModelProperty("分页大小")
    private Integer pageSize;

    public Integer getStartIndexInfo () {
        return (startIndex - 1) * pageSize;
    }


}
